﻿<src:ApplicationWindow x:Class="MainAppWindow"
    xmlns:src="clr-namespace:WpfAppHost"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Application" Height="372" Width="511" ShowTrayIcon="True" >

    <StackPanel Name="dockPanelAddinInfo" VerticalAlignment="Top" DataContext="{Binding CurrentAddin}" >
        <Expander Header="About this Application" Name="aboutExpander" DockPanel.Dock="Top">
            <Border CornerRadius="3" BorderBrush="DarkBlue" BorderThickness="3" Margin="5" Padding="5">
                <Grid Name="stackPanelAddinDetails">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <TextBlock Padding="2" FontWeight="Bold" Text="{Binding Path=Name}"  />
                    <TextBlock Padding="2" Text="{Binding Path=Version}" Grid.Column="1" />
                    <TextBlock Padding="2" Text="{Binding Path=Description}" TextWrapping="Wrap" Grid.Row="1" />
                    <TextBlock Padding="2" Text="{Binding Path=Author}" Grid.Row="1" Grid.Column="1" />
                </Grid>
            </Border>
        </Expander>
        <Border Name="SettingsControlRegion" CornerRadius="3" BorderBrush="DarkBlue" DockPanel.Dock="Bottom" BorderThickness="3" Margin="5" Padding="5">
            <ContentControl Name="SettingsControl" Content="{Binding Path=OptionsUserControl}" />
        </Border>
    </StackPanel>
</src:ApplicationWindow>
